/* 自定义样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden; /* 防止页面整体滚动 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar-brand {
    font-size: 30px;
    font-weight: bold;
    color: #f4f4f5 !important;
    margin-top: auto;
    text-shadow: 3px 2px 0 rgb(253 255 251 / 25%);
}

.navbar-inverse {
    height: 6vh;
}

.title-header {
    display: flex; /* 使用 flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 15px; /* 调整内边距 */
}

.navbar-logo {
    width: 50px; /* 设置图片宽度 */
    height: 50px; /* 设置图片高度 */
    border-radius: 50%; /* 将图片变成圆形 */
    margin-right: 10px; /* 图片和文字之间的间距 */
    margin-top: 3px;
}

.panel-default {
    border-color: #ecf0f1;
}

.panel-heading {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #3498db;
    font-weight: bold;
}

.list-group-item.active {
    background-color: #3498db;
    border-color: #3498db;
}

.form-control {
    border-radius: 3px;
    box-shadow: none;
    border: 1px solid #ddd;
}

.btn-primary {
    background-color: #3498db;
    border: none;
}

.navbar {
    box-shadow: 0 2px 4px rgba(232, 229, 229, 0.1);
}

/* 顶部导航栏 */
.navbar-inverse {
    background-color: #232c2f;
    border: none;
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav>li>a {
    color: #f4f4f5 !important;
    font-weight: bold;
}

/* 侧边栏样式 */
.sidebar {
    background: #232c2f;
    height: calc(100vh - 60px); /* 导航栏高度 */
    min-height: unset;
    margin-top: 8px;
    box-shadow: 14px 14px 28px rgba(0, 0, 0, .25), 14px 10px 10px rgba(0, 0, 0, .22);
    overflow-y: auto;
    width: 14%;
    border-radius: 8px; /* 设置圆角 */
}

.nav-stacked>li>a {
    color: #fff;
    font-size: 16px;
    padding: 12px 20px;
}

.nav-stacked>li.active>a,
.nav-stacked>li>a:focus,
.nav-stacked>li>a:hover {
    background: #343a40 !important;
    color: #fff !important;
    border-left: 4px solid #3498db;
}
.menu-title {
    color: #bfc9d4;
    padding: 16px 20px 5px 20px;
    font-size: 13px;
    cursor: default;
    display: block;
    margin-top: 18px;
}

/* 主内容区 */
.main-bg {
    background: #f8f9fa;
    min-height: 100vh;
    height: 100vh;
    padding-top: 60px; /* 导航栏高度 */
    overflow: hidden;
}
.main-content-wrapper {
    height: 100%;
    overflow: auto;
}
.main-content-box {
    margin: 2vh 40px 40px 40px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
    border-radius: 8px;
    width: 95%;
    min-height: 90vh;
    position: relative;
}
.main-content-title {
    position: absolute;
    left: 30px;
    top: 30px;
    color: #232c2f;
    font-size: 22px;
    font-weight: bold;
}

/* 侧边栏分组和缩进优化 */
.sidebar-item {
    text-indent: 1.5em;
    padding-left: 0;
}
.sidebar-item a {
    color: #fff;
    padding-left: 0;
    display: block;
    font-size: 16px;
    padding: 12px 20px;
    transition: background 0.2s;
}
.sidebar-item a:hover,
.sidebar-item.active a {
    background: #343a40 !important;
    color: #fff !important;
    border-left: 4px solid #3498db;
}

.form-panel.collapsed .panel-body {
    display: none;
}
.form-panel .panel-heading {
    cursor: pointer;
}

/* 分页导航样式 */
.pagination-container {
    margin: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 5px 0;
}

.pagination-container .pagination {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-container .pagination .page-item {
    margin: 0 2px;
}

.pagination-container .pagination .page-link {
    padding: 4px 12px;
    color: #6c757d;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.pagination-container .text-center {
    text-align: center;
    margin-top: 5px;
}

/* 激活状态 */
.pagination-container .pagination .page-item.active .page-link {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

/* 禁用状态 */
.pagination-container .pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
}

/* 悬停效果 */
.pagination-container .pagination .page-item .page-link:hover:not(.disabled) {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #17a2b8;
}

/* 表单样式 */
.class-list-container {
    margin: 2vh 40px 40px 40px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
    border-radius: 8px;
    width: 95%;
}

/* 让表格区域填满内容框 */
.table-responsive {
    height: 700px; 
    min-height: 700px;
    overflow-y: auto;
    background: #fff;
}

.table tbody tr {
    height: 66px; 
    min-height: 70px;
    vertical-align: middle;
}

.table td, .table th {
    vertical-align: middle !important;
    text-align: center;
}

/* 搜索框样式 */
.search-group input{
    width: 300px;
}

.search-group select{
    width: 130px;
}

/* 按钮样式 */
.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}
